EMT Practice Test

1. Question Content...


Question List

Question1: To update your order information from a third-party system using an XmlRpc call, you should
_______________.

Question2: Assume you have product with qty in stock=1, and two people are trying to buy it at the same time. Which of the following statements is true?

Question3: What is the total model Mage_Sale_Model_Quote_Addres_Total Nominal used for?

Question4: Which one of the following declares a Layout XML file?

Question5: Which one of the following classes does NOT exist in Magento?

Question6: Given an EAV-based data model, values for each of the object's attributes are stored in

Question7: Which of the following is the default setup script class name?

Question8: What is the basic class/interface for every model observer class?

Question9: Which of the following is an advantage to using an EAV-based model instead of a model storing data in a single table?

Question10: Two modules, Foo and Moo, both rewrite the catalog/product model, but only the Moo module's rewrite is being used. Both modules Foo and Moo reside in the community code pool. Which two approaches allow the functionality from both classes to be used? (Choose two)

Question11: Which one of the following statements is true regarding Mage_Core_Block_Text_List?

Question12: Which of the following lines includes a payment method object?

Question13: A valid way to extend Mage_Adminhtml_Cms_PageController with the
Acme_Cms_Adminhtml PageController class would be to set the following configuration;

Which of the following code pairs should be inserted in the blank spots in the code shown above?

Question14: To implement a standard Adminhtml form for a custom data model, which two of the following must you do? (Choose two)

Question15: When setData ('some', 'value') is called on an EAV entity and the entity is saved to the database,
__________________.

Question16: Which one of the following classes must you extend in order to implement a custom indexer?

Question17: Which one of the following class types directly charges a credit card when you capture an invoice in Magento admin?

Question18: Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

Question19: Assume that:
$product is a loaded instance of Mage_Catalog_Model_Product/. Catalog Price Scope is set to global,

and
$customerGroupid contains a valid customer group ID.

Which one of the following statements will correctly set new group prices?

Question20: In admin, a shipment can be created ____________.

Question21: Given an EAV-based data model whose data is stored in the table foo_entity, in which table would you find the values for an attribute of the varchar type?

Question22: Which of the following API calls allows you to fetch the list of related products using the native Magento API?

Question23: How many items will be added to the quote after adding a configurable product to the shopping cart?

Question24: Which table is used for calculating a new increment ID for an order?

Question25: What must be done to allow a third-party system to access the Magento API?

Question26: Which three of the following object types will have a parent class found in the Mage_Eav module for the purposes of EAV data storage in Magento? (Choose three)

Question27: Which of the following node names may be used inside the setup resource declaration to utilize a custom setup class?

Question28: Applying the shopping cart rule's action affects the quote item by setting the quote item's _____________.

Question29: Given a grid interface that extends from Mage_Adminhtml_Block_widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?

Question30: You have a product collection and want to add a filter to get all products whose name starts with Test or whose price is 0.00.
Which of the following statements would add that OR condition?

Question31: Assume you added a product with custom options to the shopping cart. Where will the data for the custom options be stored persistently?

Question32: When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?

Question33: What class does an adminhtml grid directly extend?

Question34: In what order are the routers from the Magento core checked for a matching route?
Default: Mage_Core_Controller_Varien_Router_Default
CMS: Mage_Cms_Controller_Router
Standard: Mage_Core_Controller_varien_Router_Standard
Admin: Mage_Core_Controller_Varien_Router_Admin

Question35: Which three of the following conditions should exclude a quote item from the shipping rate calculation by a carrier model? (Choose three)

Question36: What is the difference in the effect of calling the invoice capture ( ) method versus the invoice pay ( ) method?

Question37: Which of the following is a true statement about how Magento loads data for an EAV-based data model?

Question38: What is the name of the shopping cart item created from a recurring product?

Question39: Which object never encapsulates any shopping cart items?

Question40: Which one of the following code fragments will create a new table in Magento?

Question41: Assume that PayPal has presented a new API for online purchasing that you are going to use. Which class should you extend for doing that?

Question42: By enabling Flat catalog, you will ____________.

Question43: Which of the following xpaths defines the correct XML structure for informing Magento that your module has install scripts?

Question44: Which method is called on a shipping carrier model to fetch a list of all available shipping methods, along with the rates associated with them, for a quote address?

Question45: How is a flat table updated?

Question46: Which table stores information about the relationship between configurable products and their child products?

Question47: Which method is responsible for a full re-index in the abstract Magento indexer?

Question48: To register a new API resource, what should you do?

Question49: What do you need to do to implement a completely new Web Service protocol in Magento?

Question50: Assume the following price configuration:
Price: 10

Group price: group=General, price=15

Tier price: group=All Groups, qty=1, price=20

Tier price: group=General, qty=1, price=25

Which price will a customer from the "General" group see on the product view page?

Question51: You want to filter a product collection so that it will return only SKUs 12 and 123. You will use a call to
$collection->addFieldToFilter ('sku', ____________ );
Two of the following arrays could be used to complete that call correctly. Which two? (Choose two)

Question52: Which of the following block methods is the best to override when there is a need to customize how the block's html is rendered?

Question53: A customer bought two items but wants to cancel one. Which option enables the administrator of the site to edit the quantity while the invoice is being captured in the admin area?

Question54: Which class is extended to render a dropdown in admin forms?

Question55: How is the sort order in which total models collect their values specified?

Question56: How can you make a payment method store entire credit card numbers?

Question57: Which three of the following conditions are used to protect an admin route via ACL? (Choose three)

Question58: When an admin page is requested, which of the following methods will be executed first?

Question59: Which of the following items is NOT utilized in Magento's implementation of EAV-based data models?

Question60: Which two of the following are supported in the native Magento API? (Choose two)

Question61: You have used the "refresh"' action on the cache management page for the block html cache type. Which of the following types of cache record would be cleared?

Question62: In what order are the following hook methods called by Mage_Adminhtml_Block_Widget_Grid?

Question63: Which of the following should you do in order to add another product attribute to the condition in a shopping cart price rule?

Question64: How can you restrict access to a custom API resource?

Question65: You want to define a list of quote object attributes that are copied to the order object when an order is placed. Which one of the following statements is true?

Question66: Which of the following payment methods' payment actions creates an invoice during the "place order" step?

Question67: In which config areas are layout files declared? (Choose two)

Question68:
The checkbox "Use default value" is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?

Question69: Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?

Question70: Which one of the following API methods exists in Magento?

Question71: Which is a responsibility of EAV attribute frontend models?

Question72: You are creating a custom CMS module named Achme_Cms. Which one of the following is the correct XML required to override a controller from the Mage_Cms module in your Achme_Cms module?

Question73: Which one of the following is responsible for sending a remote request to the payment service when capturing an order?

Question74: When the Magento configuration is being loaded, all the XML files in app/etc and the module registration files under app/etc/modules/ are loaded first. After that step, in which order are the following items loaded?
1. Configuration from the core_config_data DB table
2. app/etc/local.xml
3. The etc/config.xml of all active modules

Question75: Which of the following actions will enable logging via calls to debugData( ) on a native Magento payment method model?

Question76: In which table could you find the current order state?

Question77: In which of the following integrations should you use the Magento API?

Question78: Which file path correctly identifies the location of a modules install/upgrade scripts inside the primary module directory?

Question79: Which one of the following accurately describes the purpose of the resource helper classes instantiated through Mage::getResourceHelper?

Question80: Which one of the following statements is true regarding layout update handles?

Question81: You want to implement a custom attribute source model. Which method do you have to implement after extending Mage_Eav_Model_Entity_Attribute_Source_Abstract?

Question82: Which one of the following controller classes could respond to this URL?:
http://example.com/modulename/controller/index

Question83: Which of the following layout XML directives will set a value on a block?

Question84: A custom frontend controller will extend which one of the following classes?

Question85: Which of the following will NOT generate a <script> tag in the output of the standard Magento page/ html_head block?

Question86: You want to display a grid for a custom collection. After extending Mage_Adminhtml_Block_widget_Grid, which two of these methods should you implement? (Choose two)

Question87: What type of Magento class is an API resource?

Question88: In which order are the following methods executed after Mage_Core_Model_Abstract::save ( ) is called?
1 - Mage_Core_Model_Abstract::_beforeSave ( )
2 - Mage_Core_Model_Abstract::_afterSave ( )
3 - Mage_Core_Model_Mysql4_Abstract::_beforeSave ( )
4 - Mage_Core_Model_Mysql4_Abstract::_afterSave ( )
5 - Mage Core Model Abstract::afterCommitCallback ( )

Question89: What happens when you edit an existing order using the order management page?

Question90: For which two of the following composite products could the options be shipped separately on the frontend using "Checkout with multiple addresses"? (Choose two)

Question91: The final price for the product on the product view page is__________.

Question92: Which one of the following EAV attribute types may be used for layered navigation in native Magento?

Question93: What is the xpath to the list of product types?

Question94: What does Magento use to determine whether the automatically run upgrade scripts have been run yet?

Question95: Which one of the following calls returns a simple product type model?
Assume that $product is an instance of Mage_Catalog_Model_Product representing a simple product.

Question96: Which model is responsible for calculating the taxes for the selected shipping rate?

Question97: What is the difference between the base_grand_total and grand_total attributes of the order?

Question98: How can you update a third-party system with every new order created in Magento?

Question99: Which two of the following methods can be used to bad an entity's data from its configured data table?
(Choose two)

Question100: You want to replace the instance of Mage_Customer_Helper_Address returned by Mage::helper ('customer/address') with an instance of your own class. Which one of the following xpaths would accomplish that?

Question101: Which one of the following API protocols does native Magento support?

Question102: Which statement describes a model class that extends Mage_Core_Model_Abstract?

Question103: How does Magento store comments regarding different entities (invoice, credit memo, shipment)?

Question104: Which one of the following xpaths is correct for replacing Mage_Customer_Model_Custom_Address via Mage::helper ('customer/address')?

Question105: A native Magento EAV entity will use_____________.

Question106: Which statement correctly describes order state and order status?

Question107: For an attribute to be loaded on a catalog/product object, which two of the following conditions must be satisfied? (Choose two)

Question108: Assume we have a table mage_acme/ and you want to add an index for two fields, A and B.
Which one of the following code fragments can do that?